package StudyCode.summary.mycollection;

import java.util.ArrayList;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class VariableLengthArrayConvertToArrayList {
	public static <T> ArrayList<T> toArrayList(final T... array) {
		final ArrayList<T> retValue = new ArrayList<T>();
		for (final T item : array)
			retValue.add(item);
		return retValue;
	}
}
